import request from '@/utils/request'

// 查询排期优惠列表
export function listSchedulePromo(query) {
  return request({
    url: '/cinema/schedulePromo/list',
    method: 'get',
    params: query
  })
}

// 查询排期优惠详细
export function getSchedulePromo(id) {
  return request({
    url: '/cinema/schedulePromo/' + id,
    method: 'get'
  })
}

// 新增排期优惠
export function addSchedulePromo(data) {
  return request({
    url: '/cinema/schedulePromo',
    method: 'post',
    data: data
  })
}

// 修改排期优惠
export function updateSchedulePromo(data) {
  return request({
    url: '/cinema/schedulePromo',
    method: 'put',
    data: data
  })
}

// 删除排期优惠
export function delSchedulePromo(id) {
  return request({
    url: '/cinema/schedulePromo/' + id,
    method: 'delete'
  })
}

// 导出排期优惠
export function exportSchedulePromo(query) {
  return request({
    url: '/cinema/schedulePromo/export',
    method: 'get',
    params: query
  })
}